Skip to content

Conversation

@shruti0085
Copy link
Contributor

@shruti0085 shruti0085 commented Sep 12, 2025

Changes

This change migrates the C# telemetry generator to use .NET AWS SDK V4. The version of Core and subsequent SDK release tag matches the one used by the VS IDE extension at this time.
Callouts:

  • A TestServiceModels folder is now created and cleaned up as it is now expected to be presented in the directory structure when the C# generator runs.
  • The ServiceGenerator provided by AWS SDK has gone through multiple changes over the years, it expects an Endpoints ruleset with service.json which does not work for our use case as we supply a specific serviceUrl in the IDE. The self-service generator logic is not up to date with this requirement. For minimal changes, as per .NET SDK team's recommendation, a partial class with the missing method has been added to avoid any failures.
  • In addition, the self service logic for generator had a bug where it points to 3.x versions of the SDK. A corresponding PR to update it to 4.x has been made in the upstream repo to address it and latest commit pulls this new version of the SDK.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@shruti0085 shruti0085 requested a review from a team as a code owner September 12, 2025 20:59
@shruti0085 shruti0085 marked this pull request as draft September 12, 2025 20:59
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added it to the description. Its required by the updated sdk generator to be present in the directory structure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it and made it part of the script

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just calling out that this file naturally has a large diff because it isn't updated each time the telemetry definition json file is updated. This file isn't changed as a result of Shruti's change, nor am I concerned about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the generator is auto generated

@shruti0085 shruti0085 marked this pull request as ready for review September 15, 2025 17:50
@XiaoxuanLu XiaoxuanLu merged commit 24fbf8f into main Sep 17, 2025
7 checks passed
@XiaoxuanLu XiaoxuanLu deleted the shruti0085/telemetryUpdate branch September 17, 2025 17:51
shruti0085 added a commit that referenced this pull request Sep 24, 2025
PR #1082 migrated the C# telemetry generator to AWS SDK V4. Due to
changes in contracts with this version, a Custom PartialConfig file was
added to meet the interface requirements for configuring endpoints with
the ClientConfig. This caused issues during runtime since our client
does not rely on endpoitns. As a workaround as per .NET SDK team's
guidance, since our client always sets the ServiceUrl on out client, a
fix along those lines has been made to short-circuit the underlying
logic and return endpoint based on the service url.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants